package controller;

public class PoolItem {
	private int itemId;
	private long Time;
	private int referencedObjectId;

	public PoolItem(int pItemId, long pTime, int pReferencedObject) {
		itemId = pItemId;
		Time = pTime;
		referencedObjectId = pReferencedObject;
	}

	/**
	 * @return the itemId
	 */
	public int getItemId() {
		return itemId;
	}

	/**
	 * @param pItemId
	 *            the itemId to set
	 */
	public void setItemId(int pItemId) {
		itemId = pItemId;
	}

	/**
	 * @return the time
	 */
	public long getTime() {
		return Time;
	}

	/**
	 * @param pTime
	 *            the time to set
	 */
	public void setTime(long pTime) {
		Time = pTime;
	}

	/**
	 * @return the referencedObject
	 */
	public int getReferencedObjectId() {
		return referencedObjectId;
	}

	/**
	 * @param pReferencedObject
	 *            the referencedObject to set
	 */
	public void setReferencedObjectId(int pReferencedObject) {
		referencedObjectId = pReferencedObject;
	}

	public String toString() {
		return " itemId: " + getItemId() + " time: " + getTime() + " referencedObjectId: " + getReferencedObjectId() + "\n";

	}
}
